package com.dcm.groupbuy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data//代表getter,setter
@AllArgsConstructor//有参构造
@NoArgsConstructor//无参构造
@ToString//ToString的注解
/**
 * @author 牛浩
 */
public class GroupOrderEntity {
    /**
     * 主键
     */
    private Long groupId;
    /**
     *头像
     */
    private String img;
    /**
     *开团团长
     */
    private String teamLeader;
    /**
     *开团时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;
    /**
     *拼团商品
     */
    private String groupName;
    /**
     *几人团
     */
    private Integer groupPeople;
    /**
     *几人参加
     */
    private Integer joinPeople;
    /**
     *结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;
    /**
     *拼团状态
     */
    private Integer groupState;
}
